import request from '@/utils/request'

// 查询认证情况列表
export function listCertified(query) {
  return request({
    url: '/ap/certified/list',
    method: 'get',
    params: query
  })
}

// 查询认证情况详细
export function getCertified(id) {
  return request({
    url: '/ap/certified/' + id,
    method: 'get'
  })
}

// 新增认证情况
export function addCertified(data) {
  return request({
    url: '/ap/certified',
    method: 'post',
    data: data
  })
}

// 修改认证情况
export function updateCertified(data) {
  return request({
    url: '/ap/certified',
    method: 'put',
    data: data
  })
}

// 删除认证情况
export function delCertified(id) {
  return request({
    url: '/ap/certified/' + id,
    method: 'delete'
  })
}
